package com.ctshk.rpc.train.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 火车车次新增修改入参req
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-09
 */
@Data
@ApiModel(value="TrainNumberReq对象", description="火车车次新增修改入参req")
public class TrainNumberReq  implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "铁路公司id")
    private Long railwayCorporationId;

    @ApiModelProperty(value = "铁路公司名称")
    private String railwayCorporationName;

    @ApiModelProperty(value = "车次类型")
    private Long typeId;

    @ApiModelProperty(value = "车次类型名称")
    private String typeName;

    @ApiModelProperty(value = "车次名称")
    private String trainNumberName;

    @NotNull(message = "坐席信息不能为空")
    @ApiModelProperty(value = "坐席信息")
    private List<TrainNumberSeatLevelReq> trainNumberSeatLevelReqList;

    @NotNull(message = "座位信息不能为空")
    @ApiModelProperty(value = "座位信息")
    private List<TrainNumberSeatReq> trainNumberSeatReqList;

    @ApiModelProperty(value = "出发城市id")
    private Long departureCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arriveCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "始发站点id")
    private Long departureStationId;

    @ApiModelProperty(value = "出发时间")
    private LocalDateTime departureTime;

    @ApiModelProperty(value = "始发站点名称")
    private String departureStationName;

    @ApiModelProperty(value = "终点站id")
    private Long terminusId;

    @ApiModelProperty(value = "终点站名称")
    private String terminusName;

    @ApiModelProperty(value = "到达时间")
    private LocalDateTime terminusTime;

    @ApiModelProperty(value = "天数")
    private String day;

    @NotNull(message = "经停站信息不能为空")
    @ApiModelProperty(value = "经停站")
    private List<TrainStopStationReq> trainStopStationReqList;

    @ApiModelProperty(value = "小童岁数起始")
    private Integer childAgeBegin;

    @ApiModelProperty(value = "小童岁数结束")
    private Integer childAgeEnd;

    @ApiModelProperty(value = "成人岁数起始")
    private Integer adultAgeBegin;

    @ApiModelProperty(value = "成人岁数结束")
    private Integer adultAgeEnd;

    @ApiModelProperty(value = "长者岁数起始")
    private Integer oldAgeBegin;
}
